using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for clsSecurityViolationLogRecord
/// </summary>
public class clsSecurityViolationLogRecord
{
	
     #region Member Variables
        private DateTime m_dtLogDate;
        private int m_iUserID;
        private int m_iBusinessObjectID;
        private int m_iSecurityRightID;
     #endregion 
    
    #region Constructors
        public clsSecurityViolationLogRecord()
	    {
		    //
		    // TODO: Add constructor logic here
		    //
	    }

        public clsSecurityViolationLogRecord(int UserID,String strBusinessObject,SecurityRights SecurityRight)
        {
            // 2007/10/04
            // This needs to get the business object & security right id based on the given info
            DataConnection.GetDataObject().Execute("spSecurityViolationLogsInsert '" + DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss") + "'," + UserID.ToString() + ",'" + strBusinessObject + "','" + SecurityRight.ToString() + "'");
        }
    #endregion

    #region Properties        
        public int iUserID
        {
            get
            {
                return m_iUserID;
            }
        }

        public int iBusinessObjectID
        {
            get
            {
                return m_iBusinessObjectID;
            }
        }

        public int iSecurityRightID
        {
            get
            {
                return m_iSecurityRightID;
            }
        }
    #endregion
    
    #region Private Methods
        
    #endregion
}
